﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using KYO.DAL;
using BusinessLayerHelper;
using ObjectPersistence;
public partial class Admin_Controls_Mod_AddinManager_AddinManagerList :ListControlBase<ModuleIntall>
{
    ModuleIntallAssembler moduleIntallService = new ModuleIntallAssembler();  
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            ToolbarBox1.Header = "Addin Mananger";
            List<UrlItem> urls = new List<UrlItem>();
            UrlItem url = new UrlItem();
            url.Text = "Intal New Projects";
            url.Url = DoAction.ActionPageView(PageView.AddinManager, Action.ChoiseModule);
            urls.Add(url);

            ToolbarBox1.Options = urls;
            LoadData();

        }
    }

    public override PersistentList<ModuleIntall> GetListObjects
    {
        get {

            return moduleIntallService.ReadCollectionAll();
        
        }
    }
}
